<div id="comments">
    <div class="tabs-wrap clear-block">
        <ul class="tabs">
            <li class="comments active">
                <a href="#section-comments">
                    <span>Commentaires (<?php echo ($has_comments ? $pager->getNbResults() : "0") ?>)</span>
                </a>
            </li>
        </ul>
    </div>
    <?php if($has_comments): ?>
        <?php use_helper('Date', 'JavascriptBase', 'I18N') ?>
        <?php // use_stylesheet("/vjCommentPlugin/css/comment.min.css") ?>
        <?php use_stylesheet("/vjCommentPlugin/css/pagination.min.css") ?>
        <?php use_javascript("/vjCommentPlugin/js/reply.min.js") ?>
        <?php if(commentTools::isGravatarAvailable()): ?>
            <?php use_helper('Gravatar') ?>
        <?php endif ?>
           
        <?php if ($pager->haveToPaginate()): ?>
        <?php include_partial('comment/pagination', array('pager' => $pager, 'route' => $sf_request->getUri(), 'crypt' => $crypt)) ?>
        <?php endif ?>

          <a class="box_relief dark_blue reply" href="#reply-comment" >Soumettre un commentaire</a>
          <ul class="list-comments" summary="">
        <?php foreach($pager->getResults() as $c): ?>
        <?php include_partial("comment/comment", array('obj' => $c, 'i' => (++$i + $cpt), 'first_line' => ($i == 1), 'form_name' => $form_name, 'nb_comments' => $pager->getNbResults() )) ?>
        <?php endforeach; ?>
          </ul>
    <?php endif ?>

    <?php include_component('comment', 'formComment', array('object' => $object )) ?>
    <div class="push_float"></div>
</div>